home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Speccy ClassiX 1998
/
Speccy ClassiX 98.iso
/
amiga_system
/
the_aminet
/
dev
/
lang
/
python020.readme
< prev
Wrap
Text File
|
1995-11-09
|
9KB
|
189 lines
Short: Amiga Python '020 binary, Lib files.
Author: Guido van Rossum (Amiga port: Geoff Fellows)
Uploader: "Geoff Fellows" <gfellows@csu.edu.au>
Version: 0.1
Type: dev/lang
This is an Amiga port of the programming lanugage Python.
It's only a straight port based on the POSIX version of Python v1.3,
there are no Amiga-specifics yet. There was one serious bug:
floating-point numbers did't print properly, they work internally, but
printed as "%.12g". See the Amiga source distribution readme for
more details. The latest executable passes all tests.
Follows is the contents of the BLURB file.
What is Python?
---------------
Python is an interpreted, interactive, object-oriented programming
language. It incorporates modules, exceptions, dynamic typing, very
high level dynamic data types, and classes. Python combines
remarkable power with very clear syntax. It has interfaces to many
system calls and libraries, as well as to various window systems, and
is extensible in C or C++. It is also usable as an extension language
for applications that need a programmable interface. Finally, Python
is portable: it runs on many brands of UNIX, on the Mac, and on
MS-DOS.
As a short example of what Python looks like, here's a script to
print prime numbers (not blazingly fast, but readable!). When this
file is made executable, it is callable directly from the UNIX shell
(if your system supports #! in scripts and the python interpreter is
installed at the indicated place).
#!/usr/local/bin/python
# Print prime numbers in a given range
def main():
import sys
min, max = 2, 0x7fffffff
if sys.argv[1:]:
min = int(eval(sys.argv[1]))
if sys.argv[2:]:
max = int(eval(sys.argv[2]))
primes(min, max)
def primes(min, max):
if 2 >= min: print 2
primes = [2]
i = 3
while i <= max:
for p in primes:
if i%p == 0 or p*p > i: break
if i%p <> 0:
primes.append(i)
if i >= min: print i
i = i+2
main()
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
1334 728 45.4% 26-Jan-94 12:00:00 +BLURB
5750 2735 52.4% 26-Jan-94 12:00:00 +BLURB.LUTZ
11875 5010 57.8% 22-Oct-95 12:54:38 +BUGS
766 473 38.2% 26-Oct-95 16:03:48 +BUGS.Amiga
22307 8818 60.4% 06-Aug-94 12:00:00 +cheatsheet
1393 698 49.8% 22-Oct-95 14:54:32 +commands.py
1874 820 56.2% 22-Oct-95 14:54:32 +compileall.py
7426 2510 66.1% 22-Oct-95 14:54:32 +Complex.py
6351 2007 68.3% 22-Oct-95 14:54:32 +copy.py
823 416 49.4% 22-Oct-95 14:54:32 +dircache.py
5071 1761 65.2% 22-Oct-95 14:54:32 +dircmp.py
286 161 43.7% 22-Oct-95 14:54:32 +Makefile
2981 902 69.7% 22-Oct-95 14:54:32 +Queue.py
3536 1328 62.4% 22-Oct-95 14:54:32 +StringIO.py
689 261 62.1% 22-Oct-95 14:54:32 +UserDict.py
1270 396 68.8% 22-Oct-95 14:54:32 +UserList.py
282368 136176 51.7% 29-Oct-95 09:55:04 +python020
1010 788 21.9% 26-Oct-95 17:32:48 +python020.info
22964 9317 59.4% 22-Oct-95 12:54:42 +README
1518 862 43.2% 29-Oct-95 10:13:08 +README.Amiga
12060 5281 56.2% 22-Oct-95 12:54:42 +TODO
2346 1072 54.3% 22-Oct-95 14:54:32 +addpack.py
29617 7897 73.3% 22-Oct-95 14:54:32 +aifc.py
1426 717 49.7% 22-Oct-95 14:54:32 +anydbm.py
1654 759 54.1% 22-Oct-95 14:54:32 +base64.py
9455 2600 72.5% 22-Oct-95 14:54:32 +bdb.py
12118 3999 66.9% 22-Oct-95 14:54:32 +binhex.py
458 205 55.2% 22-Oct-95 14:54:32 +bisect.py
4442 1811 59.2% 22-Oct-95 14:54:32 +calendar.py
2090 880 57.8% 22-Oct-95 14:54:32 +cmd.py
1757 835 52.4% 22-Oct-95 14:54:32 +cmp.py
1885 903 52.0% 22-Oct-95 14:54:32 +cmpcache.py
2136 960 55.0% 22-Oct-95 14:54:32 +codehack.py
3082 1164 62.2% 22-Oct-95 14:54:32 +colorsys.py
2020 837 58.5% 22-Oct-95 14:54:32 +linecache.py
288 154 46.5% 22-Oct-95 14:54:32 +lockfile.py
3170 1206 61.9% 22-Oct-95 14:54:32 +multifile.py
1545 647 58.1% 22-Oct-95 14:54:32 +mutex.py
1552 604 61.0% 22-Oct-95 14:54:32 +newdir.py
12374 4066 67.1% 22-Oct-95 14:54:32 +ni.py
4664 1628 65.0% 22-Oct-95 14:54:32 +dis.py
3484 1239 64.4% 22-Oct-95 14:54:32 +dumbdbm.py
1608 730 54.6% 22-Oct-95 14:54:32 +dump.py
590 271 54.0% 22-Oct-95 14:54:32 +find.py
15087 4507 70.1% 22-Oct-95 14:54:32 +fmt.py
2207 904 59.0% 22-Oct-95 14:54:32 +fnmatch.py
7217 1859 74.2% 22-Oct-95 14:54:32 +formatter.py
4074 1479 63.6% 22-Oct-95 14:54:32 +fpformat.py
1778 780 56.1% 22-Oct-95 14:54:32 +getopt.py
1070 402 62.4% 22-Oct-95 14:54:32 +glob.py
1433 564 60.6% 22-Oct-95 14:54:32 +grep.py
11252 3258 71.0% 22-Oct-95 14:54:32 +ihooks.py
805 451 43.9% 22-Oct-95 14:54:32 +importall.py
16336 5348 67.2% 22-Oct-95 14:54:32 +pstats.py
2740 1226 55.2% 22-Oct-95 14:54:32 +pty.py
841 444 47.2% 22-Oct-95 14:54:32 +py_compile.py
6070 2231 63.2% 22-Oct-95 14:54:32 +pyclbr.py
2865 1148 59.9% 22-Oct-95 14:54:32 +quopri.py
276 177 35.8% 22-Oct-95 14:54:32 +rand.py
6378 2441 61.7% 22-Oct-95 14:54:32 +random.py
3136 1289 58.8% 22-Oct-95 14:54:32 +os.py
68 63 7.3% 22-Oct-95 14:54:32 +ospath.py
2664 894 66.4% 22-Oct-95 14:54:32 +packmail.py
5829 2207 62.1% 22-Oct-95 14:54:32 +pdb.doc
12296 3894 68.3% 22-Oct-95 14:54:32 +pdb.py
15038 5186 65.5% 22-Oct-95 14:54:32 +pickle.py
8780 2969 66.1% 22-Oct-95 14:54:32 +pipes.py
1286 630 51.0% 22-Oct-95 14:54:32 +poly.py
5297 1852 65.0% 22-Oct-95 14:54:32 +posixfile.py
7312 2880 60.6% 22-Oct-95 14:54:32 +posixpath.py
28408 10510 63.0% 22-Oct-95 14:54:32 +profile.doc
20334 7099 65.0% 22-Oct-95 14:54:32 +profile.py
1657 695 58.0% 22-Oct-95 14:54:32 +shutil.py
6577 2386 63.7% 22-Oct-95 14:54:32 +sndhdr.py
1708 730 57.2% 22-Oct-95 14:54:32 +stat.py
1723 681 60.4% 22-Oct-95 14:54:32 +statcache.py
6627 2259 65.9% 22-Oct-95 14:54:32 +string.py
968 465 51.9% 22-Oct-95 14:54:32 +symbol.py
4147 1461 64.7% 22-Oct-95 14:54:32 +tb.py
1219 593 51.3% 22-Oct-95 14:54:32 +tempfile.py
1575 706 55.1% 22-Oct-95 14:54:32 +regex_syntax.py
706 358 49.2% 22-Oct-95 14:54:32 +regexp.py
3981 1541 61.2% 22-Oct-95 14:54:32 +regsub.py
2576 835 67.5% 22-Oct-95 14:54:32 +repr.py
8487 2884 66.0% 22-Oct-95 14:54:32 +rexec.py
3741 1564 58.1% 22-Oct-95 14:54:32 +sched.py
8930 3008 66.3% 22-Oct-95 14:54:32 +sgmllib.py
3673 1206 67.1% 22-Oct-95 14:54:32 +shelve.py
679 412 39.3% 22-Oct-95 14:54:32 +token.py
1956 1002 48.7% 22-Oct-95 14:54:32 +tokenize.py
3168 975 69.2% 22-Oct-95 14:54:32 +traceback.py
1040 480 53.8% 22-Oct-95 14:54:32 +types.py
2318 872 62.3% 22-Oct-95 14:54:32 +tzparse.py
649 363 44.0% 22-Oct-95 14:54:32 +util.py
4637 1931 58.3% 22-Oct-95 14:54:32 +uu.py
16820 4161 75.2% 22-Oct-95 14:54:32 +wave.py
6577 2386 63.7% 22-Oct-95 14:54:32 +whatsound.py
2477 1073 56.6% 22-Oct-95 14:54:32 +whrandom.py
2200 1022 53.5% 22-Oct-95 14:54:32 +zmod.py
2412 1134 52.9% 22-Oct-95 14:54:32 +autotest.py
8920 2121 76.2% 22-Oct-95 14:54:32 +test_b2.py
207 113 45.4% 22-Oct-95 14:54:32 +test_builtin.py
1422 615 56.7% 22-Oct-95 14:54:32 +test_exceptions.py
10786 3575 66.8% 22-Oct-95 14:54:32 +test_grammar.py
590 283 52.0% 22-Oct-95 14:54:32 +test_md5.py
914 343 62.4% 22-Oct-95 14:54:32 +test_opcodes.py
106 89 16.0% 22-Oct-95 14:54:32 +test_operations.py
2708 788 70.9% 22-Oct-95 14:54:32 +test_pow.py
1117 454 59.3% 22-Oct-95 14:54:32 +test_rgbimg.py
500 280 44.0% 22-Oct-95 14:54:32 +test_select.py
910 433 52.4% 22-Oct-95 14:54:32 +test_signal.py
1698 844 50.2% 23-Oct-95 09:51:06 +testall.out.in
2697 1079 59.9% 22-Oct-95 14:54:32 +toaiff.py
4392 1079 75.4% 22-Oct-95 14:54:32 +test_audioop.py
9475 2424 74.4% 22-Oct-95 14:54:32 +test_b1.py
869 455 47.6% 22-Oct-95 14:54:32 +test_support.py
2347 778 66.8% 22-Oct-95 14:54:32 +test_thread.py
7655 1929 74.8% 22-Oct-95 14:54:32 +test_types.py
1698 844 50.2% 22-Oct-95 14:54:32 +testall.out
714 283 60.3% 22-Oct-95 14:54:32 +testall.py
-------- ------- ----- --------- --------
851243 339316 60.1% 29-Oct-95 22:30:48 120 files